import { Fetch } from "@/utils/ajax";
import { FetchResult } from "serve/interface";

export interface LogEvent {
    author: {
        name: string;
        username: string;
        nickname: string;
    };
    created_at: string;
    title: string;
    type: string;
}

export const api_events = {
    getLogs: async (load_more_url: string): Promise<FetchResult<{
        load_more_url: string;
        events: LogEvent[];
    }>> => await Fetch(load_more_url || '/f2e-server/f2e-server-3/events.json', null, { cache: 'no-cache' })
}
